﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage/Home.Master" AutoEventWireup="true" CodeBehind="PageRole.aspx.cs" Inherits="TTMarketing.Admin.PageRole" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHeader" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceMain" runat="server">
    <asp:Panel ID="Panel1" runat="server" Width="100%">
        <fieldset>
            <legend>Thông tin role của Page</legend>
            
            <table width="100%">
                <tr>
                    <td width="200px">
                        <asp:Label ID="lblUserName" runat="server" Text="Tên Page"></asp:Label>
                    </td>
                    <td>
                        <asp:Label ID="lblUserNameValue" runat="server" Text="N/A"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblOrderRequest" runat="server" Text="Role"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadComboBox ID="cmbRoleName" Runat="server" Width="100%">
                            <Items>
                                <telerik:RadComboBoxItem runat="server" Owner="cmbRoleName" Text="Có nhận đơn" 
                                    Value="1" />
                                <telerik:RadComboBoxItem runat="server" Owner="cmbRoleName" Text="Không nhận đơn" 
                                    Value="0" />
                            </Items>
                        </telerik:RadComboBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblOrderRequest0" runat="server" Text="Nội dung"></asp:Label>
                    </td>
                    <td>
                        <telerik:RadTextBox ID="txtDetail" Runat="server" Height="100px" 
                            TextMode="MultiLine" Width="100%">
                        </telerik:RadTextBox>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" Text="Thêm" />
                        &nbsp;
                        <asp:Button ID="btnClear" runat="server" Text="Đóng" />
                    </td>
                </tr>
            </table>
            <br />
            <asp:HiddenField ID="hfId" runat="server" />
            <br />
            
        </fieldset>
    </asp:Panel>
    <asp:Panel ID="Panel2" runat="server" Width="100%">
        <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" 
            AllowSorting="True" DataSourceID="odsPageRole" GridLines="None" 
            ShowFooter="True">
            <ClientSettings AllowColumnsReorder="True" ReorderColumnsOnClient="True">
                <Selecting AllowRowSelect="True" />
            </ClientSettings>
            <MasterTableView AutoGenerateColumns="False" DataSourceID="odsPageRole">
                <RowIndicatorColumn>
                    <HeaderStyle Width="20px" />
                </RowIndicatorColumn>
                <ExpandCollapseColumn>
                    <HeaderStyle Width="20px" />
                </ExpandCollapseColumn>
                <Columns>
                    <telerik:GridBoundColumn DataField="Id" DataType="System.Int32" HeaderText="Id" 
                        SortExpression="Id" UniqueName="Id">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="PageId" HeaderText="PageId" 
                        SortExpression="PageId" UniqueName="PageId" DataType="System.Int32">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="RoleId" HeaderText="RoleId" 
                        SortExpression="RoleId" UniqueName="RoleId" DataType="System.Int32">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="Detail" HeaderText="Detail" 
                        SortExpression="Detail" UniqueName="Detail">
                    </telerik:GridBoundColumn>
                    <telerik:GridTemplateColumn HeaderText="Action" UniqueName="TemplateColumn">
                        <ItemTemplate>
                            <asp:ImageButton ID="ImageButton1" runat="server" 
                                ImageUrl="~/Admin/Images/Button/Edit_Grid.gif" />
                            &nbsp;&nbsp;<asp:ImageButton ID="ImageButton2" runat="server" 
                                ImageUrl="~/Admin/Images/Button/Delete_Grid.gif" />
                            &nbsp;
                        </ItemTemplate>
                        <ItemStyle Width="40px" />
                    </telerik:GridTemplateColumn>
                </Columns>
            </MasterTableView>
            <HeaderContextMenu EnableAutoScroll="True">
            </HeaderContextMenu>
        </telerik:RadGrid>
        <asp:ObjectDataSource ID="odsPageRole" runat="server" SelectMethod="getAll" 
            TypeName="TTBusiness.clsBSPageRole"></asp:ObjectDataSource>
    </asp:Panel>
</asp:Content>
